{% extends 'index.html' %}



{% block content %}
    {% for post in  posts %}
        <h1>{{ post.title }}</h1>
        <p>{{ post.content }}</p>
        <p>{{ post.submit_time }}</p>
    {% endfor %}
    {% if posts.object_list and posts.paginator.num_pages > 1 %}
        <ul class="pagination">
            <li>
                <a href="/name/qwe/?page=1">首页</a>
            </li>
            {% if posts.has_previous %}
                <li><a href="/name/qwe?page={{posts.previous_page_number}}">上一页</a></li>
            {% endif %}
            {% if posts.has_next %}
                <li><a href="/name/qwe?page={{posts.next_page_number}}">下一页</a></li>
            {% endif %}

        </ul>
    {% endif %}
{% endblock %}